package main

import "fmt"

func main() {
	//定义字符类型的数据
	var c1 byte = 'a'
	fmt.Println("c1=", c1)

	var c2 byte = '6'
	fmt.Println("c2=", c2)

	var c3 byte = '('
	fmt.Println("c3=", c3)
	fmt.Println("c3=", c3+20)

	var c4 int = '中' //用byte类型溢出，可以用int
	fmt.Println("c4=", c4)

	var c5 byte = 'A'
	fmt.Printf("c5=%c, c5对应的码值是：%d\n", c5, c5)
}
